/*
 *  BSRect.h
 *  SDL_outofbounds
 *
 *  Created by Leroy Ketelaars on 4/28/08.
 *  Copyright 2008 BackFire. All rights reserved.
 *
 *  This file provides a more logical implementation of SDL's SDL_Rect, however, it's not code-compatible
 */

#ifndef __BSRect_H
#define __BSRect_H

#ifdef __APPLE__
//Mac OS X, using Xcode
	#include "SDL.h"
#else
	#include <SDL/SDL.h>
#endif

class BSRect
{
public:
	float x, y;
	Uint16 w, h;

	BSRect(): x(0), y(0), w(0), h(0) {};
	BSRect(int nx, int ny, Uint16 nw, Uint16 nh): x(0), y(0), w(0), h(0)
	{
		x = nx; y = ny; w = nw; h = nh;
	}
	BSRect(SDL_Rect* rec): x(0), y(0), w(0), h(0)
	{
		x = (float)rec->x;
		y = (float)rec->x;
		w = (int)rec->w;
		h = (int)rec->h;
	}
	~BSRect() {};
};
#endif

